using System;
using System.Collections.Generic;
using System.Text;

namespace S2Engine.Networking
{
    public static class InternetConnection
    {
      [System.Runtime.InteropServices.DllImport("wininet.dll")]
      private extern static bool InternetGetConnectedState( out uint connection_state, int reserved );

      public static bool IsConnected
      {
        get
        { 
          uint state;
          return InternetGetConnectedState( out state, 0 );
        }
      }
    }
}
